#!/bin/sh

FILE=$1
if [ -z ${FILE} ]; then
    FILE=/userdata/screenshots/screenshot-$(date +%Y-%m-%d_%Hh%M%S).png
fi

raspi2png -p "${FILE}" 2>/dev/null || exit 1
